package com.hepinghospital.user.adapter

import com.amap.api.services.core.PoiItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hepinghospital.user.R

/**
 * @Description: java类作用描述
 * @Author: lzp
 * @CreateDate: 2022/3/15 16:08
 * @UpdateRemark: 更新说明
 */
class PoiSearchResultAdapter(data: ArrayList<PoiItem>) : BaseQuickAdapter<PoiItem, BaseViewHolder>(R.layout.item_nursing_address, data) {
    override fun convert(holder: BaseViewHolder, item: PoiItem) {
        holder.setText(R.id.tv_1, item.title)//POI的名称
        holder.setText(R.id.tv_2, item.snippet)//POI的地址
    }
}